package com.ruoyi.backend.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SurveyData {

    public interface Update{
    }

    @NotNull(groups = {Update.class}, message = "调查数据ID不能为空")
    private Integer id;

    @NotNull(groups = {Update.class}, message = "调查ID不能为空")
    private Integer investigateId;

    @NotNull(groups = {Update.class}, message = "调查时间不能为空")
    private LocalDateTime investigateTime;

    private  Double latitude;

    private  Double longitude;

    @NotNull(groups = {Update.class}, message = "高度不能为空")
    private  Double height;

    private String investigateValue;

}
